package pojo.other;

import uilt.Scan;

public class other {
    Scan sc = new Scan();
    Knowledge k = new Knowledge();
    questions q = new questions();

    public void menu(){
        while (true) {
            System.out.println("******欢迎来到其他模块******");
            System.out.println("1.知识点管理");
            System.out.println("2.试题资源管理");
            System.out.println("3.退       出");
            System.out.print("请输入：");
            int i = sc.getkey();

            if (i == 1) {
                k.menu();
            } else if (i == 2) {
                q.menu();
            }
            else {
                break;
            }
        }
    }
}
